package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Banner;
import cn.wolfcode.wolf2w.query.BannerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IBannerService {
    void save(Banner banner);
    void update(Banner banner);
    void delete(String id);
    Banner get(String id);
    List<Banner> listAll();

    /**
     * 分页
     * @param qo
     * @return
     */
    Page<Banner> query(BannerQuery qo);
    void saveOrUpdate(Banner banner);

    /**
     *  查询 banner
     * @param type
     * @return
     */
    List<Banner> queryBanner(int type);

}
